<?php
/**
 * Menu callback function
 */
function customer_admin_page() {
  $query = db_select('customer', 'fa')->fields('fa')->execute();
  $total = $query->rowCount();
  if ($total) {
    $default_message[] = l(format_plural($total, t('1 customer in your system.'),
    t('@total agencies in your system.', array('@total' => $total))), customer_DEFAULT_MENU);
  }
  else {
    $default_message[] = '<p>' . t('No customer has been created yet.') . '</p>';
  }
  $default_message[] = l(t('Add new customer'), customer_DEFAULT_MENU . '/add');
  $build['default_message'] = array(
    '#markup' => theme('item_list', array('items' => $default_message)),
    '#prefix' => '<div id="first-time">',
    '#suffix' => '</div>',
  );
  return $build;
}

